@extends('layouts.default')


@section('content')
    <div class="row">
        <div class="offset-md-2 col-md-8">
            <div class="col-md-12">
                <div class="offset-md-2 col-md-8">
                    <div class="card">
                        <h5 class="card-header d-flex justify-content-center">
                            用户登录
                        </h5>
                        <div class="card-body">
                            @include("shared._errors")
                            <form action="{{route("login")}}" method="POST">
                                @csrf
                                <div class="form-group">
                                    <label for="email">邮箱:</label>
                                    <input type="email" name="email" class="form-control" id="email" value="{{old("email")}}">
                                </div>
                                <div class="form-group">
                                    <label for="password">密码:</label>
                                    <input type="password" name="password" class="form-control" id="password" >
                                </div>
                                <div class="form-check">
                                    <input type="checkbox"  class="form-check-input"  name="remember" id="remember">
                                    <label for="remember" class="form-check-label">记住我</label>
                                </div>
                                <div class="d-flex justify-content-center">
                                    <button type="submit" class="btn btn-primary">登录</button>
                                </div>
                                <hr/>

                                <small class="d-flex justify-content-center">
                                    还没有注册?
                                    <a href="{{route('users.create')}}">点击注册</a>
                                </small>
                            </form>

                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>

@stop
